package advance.app;

import advance.app.utils.DownPathConfig;
import advance.app.utils.FtpConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@SpringBootApplication
@MapperScan(basePackages = "advance.app.dao")
@EnableConfigurationProperties({DownPathConfig.class, FtpConfig.class})
public class AppApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(AppApplication.class);
        app.addListeners(new ApplicationPidFileWriter());
        app.run(args);
    }

}
